package com.ruoyi.novel.mapper;

import com.ruoyi.novel.domain.NovelDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HomePageMapper {
    List<NovelDTO> ListByClick();

    List<NovelDTO> ListByPass();

    List<NovelDTO> ListByCollection();

    List<NovelDTO> ListByMonth();

    NovelDTO getNovelDTO(Long novelId);

    List<NovelDTO> ListByCategoryName(String categoryName);

    int  addCollectionNum(Long novelId);

    int reduceCollectionNum(Long novelId);
}
